#! /bin/bash
# 计算迭代数的和
declare -i SUM=0

for I in {1..100}; do 
  let SUM=$[$SUM+$I]
done 

echo "This sum is:$SUM"